#!/usr/bin/env node

const http = require('http'),
      cp = require('child_process');

http.createServer((req,res) => {
  //cp.execFile('./03-child.js',[],(err,stdout)=>{
   // res.end(stdout);
  //});
  
  let child = cp.spawn('./03-child.js');
  child.stdout.pipe(res);
}).listen(8080);
